import Input from './FormItems/Input.vue'
import Select from './FormItems/Select.vue'
import Radio from './FormItems/Radio.vue'
import Checkbox from './FormItems/Checkbox.vue'
import Textarea from './FormItems/Textarea.vue'
import Hr from './FormItems/Hr.vue'
import Slot from './FormItems/Slot.vue'
import Date from './FormItems/Date.vue'
import Upload from './FormItems/Upload.vue'

const components = {
  'text-item': Input,
  'input-item': Input,
  'password-item': Input,
  'select-item': Select,
  'radio-item': Radio,
  'checkbox-item': Checkbox,
  'textarea-item': Textarea,
  'hr-item': Hr,
  // Date start
  // 显示类型，可选值为 date、daterange、datetime、datetimerange、year、month
  'date-item': Date,
  'daterange-item': Date,
  'datetime-item': Date,
  'datetimerange-item': Date,
  'year-item': Date,
  'month-item': Date,
  // Date end
  'upload-item': Upload,
  'slot-item': Slot
}

export default components
